package com.zrwl.poscloud.xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zrwl.poscloud.base.entity.Employee;
import com.zrwl.poscloud.base.entity.ServerSyncEmployeeInfo;
import com.zrwl.poscloud.base.entity.UserEmployeeR;
import com.zrwl.poscloud.base.superI.SuperService;
import com.zrwl.poscloud.xo.vo.UserEmployeeRVO;

import java.util.List;

/**
 * 用户关注持卡人员 服务类
 *
 * @author 刘思童 AutoGenerate
 * @date 2021-02-24
 */
public interface UserEmployeeRService extends SuperService<UserEmployeeR> {

    public IPage<UserEmployeeR> getPageList(UserEmployeeRVO userEmployeeRVO);

    /**
     * 根据持卡人编号获取关注人
     * @param userEmployeeRVO
     * @return
     */
    public List<UserEmployeeRVO> getUserEmployeeRByEmployeeCode(UserEmployeeRVO userEmployeeRVO);

    public IPage<UserEmployeeRVO> getAllList(UserEmployeeRVO userEmployeeRVO);

    public String add(UserEmployeeRVO userEmployeeRVO);

    public String edit(UserEmployeeRVO userEmployeeRVO);

    public String delete(UserEmployeeRVO userEmployeeRVO);

    public String batchAdd(UserEmployeeRVO userEmployeeRVO);

//    public String changeFollow(UserEmployeeRVO userEmployeeRVO);

    public UserEmployeeRVO selectFollowDetail(UserEmployeeRVO userEmployeeRVO);

    public boolean changeDefaultFollow(UserEmployeeRVO userEmployeeRVO);

    public UserEmployeeR getDefaultUserEmployeeRMes(String userUid);

    public void loginGetDefaultFollow(UserEmployeeRVO userEmployeeRVO);

    public String selectAllPresentUserFollowList(UserEmployeeRVO userEmployeeRVO);

//    public String getEmployeeInfoFromRedis();

    public String unFollowEmployee(UserEmployeeRVO userEmployeeRVO);

    public String updateEmployeeInfoFormServer(List<ServerSyncEmployeeInfo> resourceList);

    List<UserEmployeeRVO> getByEmployeeUid(String employeeUid, int type);

//    String addNewEmployee(UserEmployeeRVO userEmployeeRVO);
//    public Employee getEmployeeByUserUid(String userUid);
}
